<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>CSS Test: 'page' property inheritance</title>
  <link rel="author" title="Tom Clancy" href="mailto:tclancy@revenution.com"/>
  <link rel="help" href="http://www.w3.org/TR/css3-page/#using-named-pages"/>
  <meta name="flags" content="paged" />
  <meta name="assert" content="The 'page' property is inherited."/>
  <style type="text/css"><![CDATA[
  	@page {
		size: portrait;
		margin: 7%;
	}
	@page rotated { 
		size: landscape; 
		margin-right: 50%;
		@top-center { content: "Test Case"; }
	}
	
	div { page: rotated; }
	p.unspun { page: auto; }
  ]]></style>
 </head>
 <body>
 	<p>This paragraph should be printed in portrait layout (the short sides of the page should be the top and bottom). No content should appear in the top center.</p>
	<p>This paragraph should be printed in portrait layout on the same page.</p>
	<div>
		<p>This paragraph should be printed in landscape layout (the long sides of the page should be the top and bottom) on a new page. The entire paragraph must be on the left side of the page. This page should say &quot;Test Case&quot; in the top center.</p>
		<p class="unspun">This paragraph should be printed in portrait layout on a new page. No content should appear in the top center.</p>
	</div>
	<p>This paragraph should be printed in portrait layout on a new page. No content should appear in the top center.</p>
 </body>
</html>